﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace 树.控制台测试.测试类
{
    public class Student
    {
        public int Id { get; set; }
        public string Name { get; set; }

        public int ScoreA { get; set; }
        public int ScoreB { get; set; }

        //public Student()
        //{

        //}

        public Student(string name)
        {
            Name = name;
        }

        public Student(int id, string name)
        {
            Id = id; Name = name;
        }

        public int GetTotalScore()
        {
            return ScoreA + ScoreB;
        }
    }
}
